﻿using GwenHelpers.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace GwenHelpers
{
    class Program
    {
        static void Main(string[] args)
        {
            var dataLines = DataLine.getDataLines();
            // In real with DataBase access:
            // var dataLines = from dataline in DB_context.dataTable where (dataLine.index > 350 && dataLine.index < 360) select dataline;
            XElement xE = IQueyableToXmlHelper.simpleGenericToXml(dataLines);
            Console.WriteLine(xE.ToString());
            Console.ReadKey();
        }
    }
}
